<%@ Page Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="TemplateControls.aspx.cs" Inherits="TemplateControls" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phMain" Runat="Server">
<fieldset>
    <legend>Current Template Controls</legend>
    <asp:GridView ID="gvTemplateControls" runat="server" AutoGenerateColumns="False" DataSourceID="dsControls" DataKeyNames="Id,ConcurencyId">
        <Columns>
            <acmswc:IndexField />
            <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="AdminControlType" HeaderText="AdminControlType" SortExpression="AdminControlType" />
            <asp:BoundField DataField="SearchXPath" HeaderText="SearchXPath"
                SortExpression="SearchXPath" />
            <asp:CheckBoxField DataField="Custom" HeaderText="Custom" SortExpression="Custom" />
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
    </asp:GridView>
</fieldset>
<fieldset>
    <legend>Add New Template Controls</legend>
    <asp:DetailsView ID="dvTemplateControls" runat="server" AutoGenerateRows="False" DataSourceID="dsControls" AutoGenerateInsertButton="True" DataKeyNames="Id,ConcurencyId" DefaultMode="Insert">
        <Fields>
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="AdminControlType" HeaderText="AdminControlType" SortExpression="AdminControlType" />
            <asp:BoundField DataField="SearchXPath" HeaderText="SearchXPath"
                SortExpression="SearchXPath" />
            <asp:CheckBoxField DataField="Custom" HeaderText="Custom" SortExpression="Custom" />
        </Fields>
    </asp:DetailsView>
</fieldset>
<acmsdc:ControlTypeDataSource ID="dsControls" runat="server" OnSelectData="dsControls_SelectData" OnUpdatingData="dsControls_UpdatingData" />
</asp:Content>

